package com.example.demo.base2;

public class Son {

    class Myfather extends Father{

        @Override
        protected int strong(){
            return super.strong() - 1;
        }
    }

    class MyMother extends Mother{
        @Override
        public int kind(){
            return super.kind() + 1;
        }
    }

    public int getStrong(){
        Myfather myfather = new Myfather();
        return myfather.strong();
    }
    public int getKind(){
        MyMother myMother = new MyMother();
        return myMother.kind();
    }
}
